package org.veloxbot.api.wrappers;

import java.awt.*;

/**
 * @author Caleb
 */
public class DTMRoot {

	private final Color color;
	private final int tolerance;

	/**
	 * Constructs a DTMRoot which consists of the given parameters.
	 *
	 * @param color     The color to search for.
	 * @param tolerance The tolerance of the color to search for.
	 */
	public DTMRoot(final Color color, final int tolerance) {
		this.color = color;
		this.tolerance = tolerance;
	}

	/**
	 * Gets the constructed color.
	 *
	 * @return The costructed color.
	 */
	public Color getColor() {
		return color;
	}

	/**
	 * Gets the tolerance of the constructed color.
	 *
	 * @return The tolerance of the constructed color.
	 */
	public int getTolerance() {
		return tolerance;
	}
}
